﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web/Main.Master" AutoEventWireup="true" CodeBehind="sysDepartmentTree.aspx.cs" Inherits="BOMS.WebUI.sysDepartmentTree" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" src="/Js/Dialog.js"></script>
<script type="text/javascript">

    function orgDialogReturn(retval, retval2) {
       // debugger;
        var dialog = top.Dialog.getInstance('Diag3');
        dialog.addParam("returnValue", retval);
        dialog.addParam("returnValue2", retval2);
        //alert(retval);
        //else if (retval == "cancel")
       dialog.CancelButton.onclick();
    }

    function dialogReturn(retval) {
        var dialog = top.Dialog.getInstance('Diag3');
    if (retval == "cancel")
        dialog.CancelButton.onclick();
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <table  cellspacing="1" cellpadding="3" align="left" border="0">
    <tr>
    <td><asp:TreeView ID="tvOrg" runat="server" ExpandDepth="1" 
        ontreenodepopulate="tvOrg_TreeNodePopulate" ShowCheckBoxes="All" 
        ShowLines="True"></asp:TreeView></td> 
        </tr>
        <tr><td>
            <asp:Button ID="add" runat="server" Text="确 定" onclick="add_Click"  />
        &nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="取 消" onclick="dialogReturn('cancel');" /></td></tr>
        </table>

</asp:Content>
